package prometheus
Import Path
github.com/K-Phoen/grabana/alert/queries/prometheus (on go.dev)
Dependency Relation
imports 2 packages, and imported by one package
Involved Source Files
prometheus.go
Package-Level Type Names (total 2)
Option represents an option that can be used to configure a prometheus query.
func Legend(legend string) Option
func TimeRange(from time.Duration, to time.Duration) Option
func New(ref string, query string, options ...Option) *Prometheus
func github.com/K-Phoen/grabana/alert.WithPrometheusQuery(ref string, query string, options ...Option) alert.Option
Package-Level Functions (total 3)
Legend sets the legend format.
New creates a new prometheus query.
TimeRange sets the legend format.
![]() |
The pages are generated with Golds v0.8.2. (GOOS=linux GOARCH=amd64) Golds is a Go 101 project developed by Tapir Liu. PR and bug reports are welcome and can be submitted to the issue list. Please follow @zigo_101 (reachable from the left QR code) to get the latest news of Golds. |